<template>
  <div class="no-data">
    <img src="../assets/images/no-data.png" />
    <span>{{ desc }}</span>
  </div>
</template>

<script>
export default {
  props: {
    desc: {
      type: String,
      default: "暂无数据",
    },
  },
};
</script>

<style lang="scss" scoped>
.no-data {
  display: flex;
  flex-flow: column;
  align-items: center;
  padding: 32px 0;
  line-height: normal;

  span {
    margin-top: 16px;
  }
}
</style>
